import java.util.Scanner;

public class L5 {
    public static void main(String[] args){
        int i ;
        double sum = 0;
        for (i = 1;i < 6;i++){
            System.out.println("请输入第"+i+"个成绩");
            Scanner reader = new Scanner(System.in);
            double x = reader.nextDouble();
            if (0>x || x>100){
                System.out.println("该成绩有误，不列入计算");
            }
            else {
                sum = sum + x;
            }
        }
        System.out.printf("和为"+sum);
    }
}
